home *** CD-ROM | disk | FTP | other *** search
- global gImages, gDataPos, gImageCount
-
- on exitFrame
- set theCurrentImage to getAt(gImages, gDataPos)
- set the visible of sprite 1 to 1
- set the stretch of sprite 1 to 0
- set the stretch of sprite 1 to 1
- set the locH of sprite 1 to 0
- set the locV of sprite 1 to 0
- set WI to the height of cast theCurrentImage
- set HI to the width of cast theCurrentImage
- if value(HI) > value(WI) then
- spriteBox(1, 0, 0, WI - 250, HI - 700)
- set the locH of sprite 1 to 320
- set the locV of sprite 1 to 210
- puppetTransition(9, 1, 4)
- set the visible of sprite 1 to 1
- updateStage()
- else
- spriteBox(1, 0, 0, WI - 700, HI - 270)
- set the locH of sprite 1 to 320
- set the locV of sprite 1 to 215
- puppetTransition(9, 1, 4)
- set the visible of sprite 1 to 1
- end if
- end
-